<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, ">
    <title>Document</title>
    <link rel="stylesheet" href="./基础样式.css">
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: red;
            border: 1px solid black;
            margin: auto;
            margin-top: 20px;
        }

        #box {
            width: 100px;
            height: 100px;
            background-color: blue;
            border: 1px solid black;
        }

        .box {
            background-color: pink;
            border: none;
        }

        .box1 {
            width: 100px;
            height: 100px;
            background-image: url(./微信图片_20230318203917.jpg);
        }

        p {
            width: 200px;
            height: 100px;
            border: 1px solid black;
            color: orange;
            font-size: 16px;
            font-weight: bolder;
            text-align: center;


        }
    </style>
</head>

<body>
    <div>hahahha ha ha</div>
    <!--margin 让整个容器居中 top 距顶部多少距离-->
    <div id="box"></div> <!-- id选择器 -->
    <div class="box"></div> <!-- class选择器 -->
    <div class="box1"></div>
    <!--设置背景为图片样式-->
    <p>我是一个段落标签（块标签）</p>
    <!--color 字体颜色，font-size 字体大小 font-weight bolder实现加粗操作 或设置具体大小 100-900 -->



</body>

</html>